/**
 * 
 */
package com.aibili.pojo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 用户好感度表
 * 
 * @author qiuch
 * 
 */
@Entity
@Table(name = "t_user_favorability")
public class UserFavorability implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6734740117231616299L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", length = 11, nullable = false)
	private long id;

	@Column(name = "user_id", length = 11, nullable = false)
	private long user_id;// 用户id

	@Column(name = "relation_id", length = 11, nullable = false)
	private long relation_id;// 相关用户id

	@Column(name = "favorability")
	private int favorability;// 好感度

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getUser_id() {
		return user_id;
	}

	public void setUser_id(long user_id) {
		this.user_id = user_id;
	}

	public long getRelation_id() {
		return relation_id;
	}

	public void setRelation_id(long relation_id) {
		this.relation_id = relation_id;
	}

	public int getFavorability() {
		return favorability;
	}

	public void setFavorability(int favorability) {
		this.favorability = favorability;
	}

}
